package com.example.demo.threadPool_countDownLatch.plus;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

@Data 
public class User {
    private Integer id;
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void main(String[] args) {
        User user=new User();
        user.setName("11");
        System.out.println(user);
        System.out.println(JSONObject.toJSONString(user));
    }
}